import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { DeviceDeviceCheckEntity } from '../../entity/deviceCheck';
import { DeviceDeviceCheckService } from '../../service/deviceCheck';

/**
 * 天乐设备检查数据
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: DeviceDeviceCheckEntity,
  service: DeviceDeviceCheckService,
  pageQueryOp: {
    keyWordLikeFields: [
      'a.equipment',
      'a.name',
      'a.phoneNumber',
      'a.idCard',
      'a.hospitalID',
      'a.number',
    ],
    fieldEq: ['a.measurementTime', 'a.gender'],
  },
})
export class AdminDeviceDeviceCheckController extends BaseController {
  @Inject()
  deviceDeviceCheckService: DeviceDeviceCheckService;
}
